package me.hegj.wandroid.mvp.ui.activity.main.home;

import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import com.jess.arms.widget.CustomPopupWindow;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import me.hegj.wandroid.R;

/**
 * @author:
 * @project: WanAndroid-master
 * @package: me.hegj.wandroid.mvp.ui.activity.main.home
 * @description:
 * @date: 2020/4/15
 * @time: 10:50
 */
public class a extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.search_empty_view);
        findViewById(R.id.txv_dj).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v1) {
                View v=CustomPopupWindow.inflateView(a.this,R.layout.item_todo_dialog);
                CustomPopupWindow.builder()
                        .contentView(v)
                        .customListener(new CustomPopupWindow.CustomPopupWindowListener() {
                            @Override
                            public void initPopupView(View contentView) {
                                contentView.findViewById(R.id.item_todo_dialog_name).setOnClickListener(new View.OnClickListener() {
                                    @Override
                                    public void onClick(View v) {
                                        Toast.makeText(a.this,"cc",Toast.LENGTH_LONG).show();
                                    }
                                });
                            }
                        })
                        .build()
                        .show();
            }
        });


    }
}
